
package me.zhengjie.service.dto;

import lombok.Data;
import me.zhengjie.utils.DateUtils;

import java.io.Serializable;
import java.sql.Timestamp;

/**
* @website https://el-admin.vip
* @description /
* @author IQW
* @date 2022-07-18
**/
@Data
public class AppMessage2Dto implements Serializable {

    /** ID */
    private Integer msgId;

    /** 标题 */
    private String title = "系统消息";

    /** 消息类型 */
    private String avatarPath = "http://ydweb.tentrue.com:8086/show/default_msg.png";

    /** 内容 */
    private String content;


    /** 状态 */
    private Integer status;

    private Timestamp createTime;

    private Timestamp updateTime;

    //	年月日
    private String date="";
    //  时分秒
    private String time="";

    public Integer getMsgId() {
        return msgId;
    }

    public void setMsgId(Integer msgId) {
        this.msgId = msgId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
//        this.title = title;
        this.title = "系统消息";
    }

    public String getAvatarPath() {
        return avatarPath;
    }

    public void setAvatarPath(String avatarPath) {
        this.avatarPath = avatarPath;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    public String getDate() {
        return DateUtils.TimestampToStrDay(this.createTime);
    }

    public String getTime() {
        return DateUtils.TimestampToStrHM(this.createTime);
    }

    public void setDate(String date) {
        this.date = date;
    }

    public void setTime(String time) {
        this.time = time;
    }
}